package com.bdqn.xiangchuan.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

@Controller
public class IndexController {
    @RequestMapping("index")
    public ModelAndView index(HttpSession session){
        session.setAttribute("max",1000);
        return new ModelAndView("index","username","张三");
}
    @RequestMapping("main")
    public String main(){
        return "main";
    }
    @RequestMapping("khgl")
    public String khgl(){
        return "khgl";
    }
}
